﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MG.HomeO2O.Model;
using MG.HomeO2O.DAL;
namespace MG.HomeO2O.BLL
{
    public class member_listBLL
    {
        member_listDAL dal = new member_listDAL();
        public List<personnel> pershow()
        {
            return dal.pershow();
        }
        /// <summary>
        /// 人员添加
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public bool peradd(personnel p)
        {
            return dal.peradd(p);
        }
        /// <summary>
        /// 人员删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool perdelete(int id)
        {
            return dal.perdelete(id);
        }
        /// <summary>
        /// 获取人员编号
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public personnel getperid(int id)
        {
            return dal.getperid(id);
        }
        /// <summary>
        /// 人员修改
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public bool perupdate(personnel p)
        {
            return dal.perupdate(p);
        }
    }
}
